import { applyMiddleware, createStore } from 'redux'
import thunk from 'redux-thunk'
import { composeWithDevTools } from 'redux-devtools-extension'
// 引入汇总之后的reducx
import reducer from './reducers'

// 该文件专门用于暴露一个store对象，整个应用只有一个store对象
export default createStore(reducer, composeWithDevTools(applyMiddleware(thunk)))
